<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko">
<head>
<title>명함관리시스템 - 명함등록</title>
<link rel="stylesheet" type="text/css" href="/style/css/adminbase.css" media="screen" />
<script type="text/javascript">
</script>
</head>
<body>
	<div class="contents">
	<h3>명함 등록</h3>
	<div class="spacer10"></div>
	<form action="${it.uploadURL}" method="post" enctype="multipart/form-data">
	<div class="table01">
	<table>
		<col width="100px" />
		<col width="*" />
		<thead>
		</thead>
		<tbody>
			<tr>
				<th align="left">이름</th>
				<td><input type="text" name="name"/></td>
			</tr>
			<tr>
				<th align="left">전화번호</th>
				<td><input type="text" name="telephone"/></td>
			</tr>
			<tr>
				<th align="left">이메일</th>
				<td><input type="text" name="email"/></td>
			</tr>
			<tr>
				<th align="left">주소</th>
				<td><input type="text" name="address"/></td>
			</tr>
			<tr>
				<th align="left">사진</th>
				<td><input type="file" name="cardImage"/></td>
			</tr>
			<tr>
				<th align="left">카테고리</th>
				<td>
					<select name="categoryOId">
					<option value="0">선택</option>
					<c:forEach var="category" items="${it.categoryDtoList}">
					<option value="${category.categoryOId}">${category.categoryName}</option>
					</c:forEach>
					</select>
				</td>
			</tr>
		</tbody>
	</table>
	</div>
	<input type="submit" value="등록">
	</form>
	
	<div class="spacer10"></div>
	<a href="/ws/main">홈으로</a>
	<a href="/ws/card/list">목록</a>
	</div>
</body>
</html>